/*
 * 软件版权: Mr.LEE
 * 修改记录:
 * 修改日期     修改人员  修改说明
 * ========    =======  ============================================
 * 2020/12/24  LJH  新增
 * ========    =======  ============================================
 */
package com.lagou.cloud.service;

import com.lagou.cloud.service.impl.AuthTokenFeignServiceFallbackImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 功能说明:
 *
 * @author LJH
 */
@FeignClient(value = "auth-token-service", fallback = AuthTokenFeignServiceFallbackImpl.class, path = "/auth-token")
public interface AuthTokenFeignService {

    /**
     * 获取验证码
     * @param email 验证码邮箱
     * @return 验证码结果
     */
    @RequestMapping(value = "/get")
    String getAuthToken(@RequestParam("email") String email);
}
